package com.cnap.utils;

import com.github.pagehelper.PageInfo;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
 * <类文件描述>
 *
 * @author xc
 **/
class PageUtilsTest {

    @Test
    void getPageResult() {
        PageInfo<?> pageInfo = new PageInfo<>();

        Assertions.assertDoesNotThrow(()->{
            PageUtils.getPageResult(pageInfo);
        });
    }

    @Test
    void setRealPageInfo() {
        PageInfo<?> pageInfo = new PageInfo<>();
        PageInfo<?> pageInfo1 = new PageInfo<>();

        Assertions.assertDoesNotThrow(()->{
            PageUtils.setRealPageInfo(pageInfo, pageInfo1);
        });
    }
}